package org.paraj.masterworker;

import java.io.Serializable;
import java.util.UUID;

/**
 * Created by IntelliJ IDEA.
 * User: piotrga
 * Date: Nov 20, 2008
 * Time: 8:11:02 PM
 * To change this template use File | Settings | File Templates.
 */
public interface Master {
    Task getTask();

    public static class Task implements Serializable{
        public UUID id;
        public byte[] payload;

        public Task(UUID id, byte[] payload){
            this.payload = payload;
            this.id = id;
        }
    }

}

